package com.example.cachecontroldemo.pojo;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public class UserVO {
    private String id;
    private String nickname;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    public UserVO(UserDO userDO) {
        this.id = userDO.getId();
        this.nickname = userDO.getNickname();
        this.createTime = userDO.getCreateTime();
        this.updateTime = userDO.getUpdateTime();
    }
}
